package com.cetc.testkafka.config;

import java.util.HashMap;
import java.util.Map;

public class Test {
    private static String key = "org.apache.kafka.common.serialization.StringSerializer";

    public static void main(String[] args) {
        test2();
    }

    public static void test1() {
        Class cls = null;
        try {
            cls = Class.forName(key);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
        Class cls2 = org.apache.kafka.common.serialization.StringSerializer.class;
        System.out.println(cls);
        System.out.println(cls2);
    }

    public static void test2() {
        Map<String, Integer> map = new HashMap<>();
        map.put("a",1);
        map.put("a",2);
        System.out.println(map.get("a"));
    }
}
